home *** CD-ROM | disk | FTP | other *** search
/ Champak 41 / Volume 41 - JOGO DISK .iso / Games / scribble.swf / scripts / DefineButton2_59 / BUTTONCONDACTION on(release).as
Text File  |  2007-02-20  |  487b  |  23 lines

  1. on(release){
  2.    stopAllSounds();
  3.    Mouse.hide();
  4.    _root.num = 0;
  5.    _root.counter = 0;
  6.    t = 0;
  7.    while(t < _root.l)
  8.    {
  9.       _root["bs" + t].removeMovieClip();
  10.       trace(_root["bs" + t]._x);
  11.       t++;
  12.    }
  13.    _root.l = 0;
  14.    _root.m = 0;
  15.    _root.cstatus = 1;
  16.    _root.star.startDrag(true);
  17.    bgSound = new Sound();
  18.    bgSound.attachSound("e1");
  19.    bgSound.start(0,99);
  20.    tt = _root.attachMovie("avoid","avoid",_root.k++);
  21.    this.removeMovieClip();
  22. }
  23.